package com.alisls.demo.sso.ics.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 描述
 *
 * @author Ke Wang
 */
@Controller
public class MainController {

    @Value("${sso.logout-url}")
    private String ssoLogoutUrl;

    @RequestMapping("/main")
    public String main(Model model) {
        model.addAttribute("ssoLogoutUrl", ssoLogoutUrl);
        return "main";
    }

}
